Repository navigation
chore: require servicekit 2.0.3 - #125
Merged
Merged
Conversation
servicekit 2.0.3 probes the local bind port for registration readiness separately from the advertised SERVICEKIT_PORT (CLIM-1248), so model images started with uvicorn --port 8000 and published on another host port register again. Pin servicekit>=2.0.3,<3 and refresh the lockfile.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pin
servicekit>=2.0.3,<3and refresh the lockfile.servicekit 2.0.3 fixes CLIM-1248: registration probed
127.0.0.1:<SERVICEKIT_PORT>for readiness, so a model image published on another host port (for example-p 18701:8000withSERVICEKIT_PORT=18701, needed when the orchestrator runs on the Docker host) never became ready and skipped registration. The probe now targets the local bind port (PORT, the advertised port, then 8000) and only accepts its own app, whileSERVICEKIT_PORTstays the advertised port.No chapkit code changes are needed: the generated Dockerfiles start
uvicorn main:app --port 8000without settingPORT, which 2.0.3 now finds via the 8000 fallback, andchapkit rungoes throughrun_app, which now exports its bind port asPORT.Release notes: https://github.com/dhis2-chap/servicekit/releases/tag/v2.0.3
make lintandmake testpass (943 passed, 3 skipped).